<style>.footer.footer-home {<?php if($output['is_weixin'] ==1){ ?>display: none; <?php } ?>}
    body{ background:#eaeaea;}
    input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
        color: #b9b9b9;
        font: 1.3rem Arial,'Microsoft YaHei','Helvetica Neue','Hiragino Sans GB','STHeiti','SimHei',sans-serif;
    }
    input:-moz-placeholder, textarea:-moz-placeholder {
        color: #b9b9b9;
        font: 1.3rem Arial,'Microsoft YaHei','Helvetica Neue','Hiragino Sans GB','STHeiti','SimHei',sans-serif;
    }
    input::-moz-placeholder, textarea::-moz-placeholder {
        color: #b9b9b9;
        font: 1.3rem Arial,'Microsoft YaHei','Helvetica Neue','Hiragino Sans GB','STHeiti','SimHei',sans-serif;

    }
    input:-ms-input-placeholder, textarea:-ms-input-placeholder {
        color: #b9b9b9;
        font: 1.3rem Arial,'Microsoft YaHei','Helvetica Neue','Hiragino Sans GB','STHeiti','SimHei',sans-serif;
    }
.customized-con input{width: 100%; }

</style>
<div class="content" style="padding: 3%;">
    <div class="customized">
        <div>私人定制<span></span></div>
        <div>企业定制<span></span></div>
    </div>
    <div class="customized-con">
        <form>
            <div><input type="text" name="s_addr" placeholder="出发地" /></div>
            <div><input type="text" name="e_addr" placeholder="目的地" /></div>
            <div><input type="text" name="username" placeholder="称呼" /></div>
            <div><input type="text" name="num" placeholder="人数"  /></div>
            <div><input type="text" name="phone" placeholder="联系电话"  /></div>
            <div><input type="text" name="require"  placeholder="特殊要求" /></div>
            <div style="height: 2rem;background-color: #EAEAEA"></div>
            <div style="background-color: #eaeaea;border-bottom:1px solid #eaeaea;">

                <button type="button">提交信息</button>

            </div> <div style="text-align: center;background-color: #eaeaea;border-bottom:1px solid #eaeaea; <?php if(!$output['is_weixin']){ ?>line-height: 1rem;<?php } ?>">
                客服微信号:Lbvip002
            </div>

            <input type="hidden" name="type" value="0">
            <input type="hidden" name="form_submit" value="ok">
        </form>

    </div>
    <div class="customized-con hide">
        <form>
            <div><input type="text" name="s_addr" placeholder="出发地" /></div>
            <div><input type="text" name="e_addr"  placeholder="目的地"/></div>
            <div><input type="text" name="username" placeholder="称呼" /></div>
            <div><input type="text" name="company"  placeholder="公司名称"/></div>
            <div><input type="text" name="num" placeholder="人数" /></div>
            <div><input type="text" name="phone"  placeholder="联系电话"/></div>
            <div><input type="text" name="require"  placeholder="特殊要求"/></div>
            <div style="height: 2rem;background-color: #EAEAEA"></div>
            <div style="background-color: #eaeaea;border-bottom:1px solid #eaeaea;">

                <button type="button" style="margin-top: 0 !important;">提交信息</button>
                <div style="text-align: center;background-color: #eaeaea;border-bottom:1px solid #eaeaea;">
                    客服微信号:Lbvip002
                </div>
            <div style="height: 3rem"></div>
            </div>
            <input type="hidden" name="type" value="1">
            <input type="hidden" name="form_submit" value="ok">
        </form>
    </div>
</div>
<script>
    $('.customized-con button').click(function () {
        var form = $(this).parent().parent();
        var valid = true;
        form.find('input').each(function (i) {
            switch (this.name) {
                case 'username':
                    if (this.value == '') {
                        popAlert('请填写称呼');
                        return valid = false;
                    }
                    break;
                case 'phone':
                    if (!/^1\d{10}$/.test(this.value)) {
                        popAlert('请填写正确的联系电话');
                        return valid = false;
                    }
                    break;
            }
        });
        if (valid) {
            $.post(location.href, form.serialize(), function (ret) {
                if (ret.datas) {
                    popAlert('提交成功', function () {
                        location.href = 'index.php';
                    });
                } else {
                    popAlert('提交失败');
                }
            }, 'json');
        }
    });
</script>













